﻿using Digitalmes.Domain.Sys;

namespace Digitalmes.Sugar.SeedData;

internal sealed class SysOrganizeSeedData : ISqlSugarEntitySeedData<SysOrganize>
{
    [IgnoreUpdate]
    public IEnumerable<SysOrganize> HasData()
    {
        return new[]
        {
            new SysOrganize { Id = 1300000000001, TenantId = 0, ParentId = 0, Name = "集团", Number = "001", ParentIdList = new() { 0 }, Layer = 1, Sort = 1, LeaderUser = "", LeaderMobile = "", LeaderEmail = "", CreateUser = "admin", CreateTime = DateTime.Parse("2022-02-22 00:00:00") },
            new SysOrganize { Id = 1300000000002, TenantId = 0, ParentId = 1300000000001, Name = "生产/技术", Number = "002", ParentIdList = new() { 1300000000001 }, Layer = 2, Sort = 2, LeaderUser = "", LeaderMobile = "", LeaderEmail = "", CreateUser = "admin", CreateTime = DateTime.Parse("2022-02-22 00:00:00") },
        };
    }
}
